package top.saodisheng.pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * Component 注解类
 * @author saodisheng
 * @date 2021/8/20
 */
@Component
public class ComponentUser {
	private String name;

	private String id;

	public ComponentUser() {}

	public ComponentUser(String name, String id) {
		this.name = name;
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return "ComponentUser{" +
				"name='" + name + '\'' +
				", id='" + id + '\'' +
				'}';
	}
}
